package com.china08.yxyapi.entity.db.sws;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 网站设置:轮播图
 * 
 * @author Ertao.Fang
 *
 */
@Entity
@Table(name = "sws_setting_sliders", catalog = "yxy_sws")
public class SwsSettingSliders extends BaseEntityNoId {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /** 主键:ID */
    @Id
    @Column(name = "id", length = 32)
    private String id;

    /** 学校:ID */
    @Column(name = "school_id", nullable = false, length = 32)
    private String schoolId;

    /** 图片 */
    @Column(name = "img", nullable = false)
    private String img;

    /** 连接地址 */
    @Column(name = "url")
    private String url;

    /** 状态 */
    @Column(name = "status", columnDefinition = "int(1) DEFAULT 0 COMMENT '0-草稿,1-发布,2-下架/取消'", nullable = false)
    private Integer status = 0;

    /** 排序字段 */
    @Column(name = "order_num", columnDefinition = "int(1) DEFAULT 100 COMMENT '排序字段'", nullable = true)
    private Integer orderNum = 100;

    // getters and setters
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

}
